import Vue from 'vue'
import App from './App.vue'

//引入element-ui
import ElementUI from 'element-ui';
//引入ElementUI全部样式
import 'element-ui/lib/theme-chalk/index.css';

//引入路由器
import router from './router';

//引入store实例
import store from './store';

//引入mock
import "./api/mock"



//引入axios实例
// import http from 'axios'

//应用ElementUI
Vue.use(ElementUI);

//http
// Vue.prototype.$http = http

Vue.config.productionTip = false



new Vue({
  render: h => h(App),
  router,
  store,
  created(){
    store.commit('addMenu',router)
  }
}).$mount('#app')
